package com.lotus.lqmp.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lotus.lqmp.service.dao.entity.EcuInventoryDo;
import com.lotus.platform.common.model.enums.DeletedStatusEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lotus.lqmp.service.dao.EcuInventoryDetailMapper;
import com.lotus.lqmp.service.dao.entity.EcuInventoryDetailDo;
import com.lotus.lqmp.service.service.EcuInventoryDetailService;
import com.lotus.platform.common.biz.impl.BaseBiz;

import java.util.List;

/**
 * ECU清单详情表Service业务层处理
 *
 * @author Shiheng.Liu1
 * @date 2022-03-29
 */
@Service
public class EcuInventoryDetailServiceImpl extends BaseBiz<EcuInventoryDetailMapper, EcuInventoryDetailDo>  implements EcuInventoryDetailService{
    @Autowired
    private EcuInventoryDetailMapper ecuInventoryDetailMapper;

    @Override
    public List<EcuInventoryDetailDo> getByEcuInventoryId(Long ecuInventoryId) {
        QueryWrapper<EcuInventoryDetailDo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("ecu_inventory_id", ecuInventoryId);
        return ecuInventoryDetailMapper.selectList(queryWrapper);
    }
}
